﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Epic.Net.Extensions
{
    public static class ICollectionExtensions
    {
        public static T AddValidate<T, K>(this T collection, K value) where T : ICollection<K>
        {
            if (value != null) collection.Add(value);
            return collection;
        }
    }
}
